home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / Runimage / Delphi50 / Demos / ToolsAPI / Editor Keybinding / savekeymacro.pas < prev   
Encoding:
Pascal/Delphi Source File  |  1999-08-11  |  710 b   |  39 lines

  1. unit SaveKeyMacro;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   StdCtrls;
  8.  
  9. type
  10.   TSaveKeyMacroDlg = class(TForm)
  11.     Edit1: TEdit;
  12.     Button1: TButton;
  13.     Button2: TButton;
  14.     Button3: TButton;
  15.     Label1: TLabel;
  16.     SaveDialog1: TSaveDialog;
  17.     OpenDialog1: TOpenDialog;
  18.     procedure Button1Click(Sender: TObject);
  19.   private
  20.     { Private declarations }
  21.   public
  22.     { Public declarations }
  23.   end;
  24.  
  25. var
  26.   SaveKeyMacroDlg: TSaveKeyMacroDlg;
  27.  
  28. implementation
  29.  
  30. {$R *.DFM}
  31.  
  32. procedure TSaveKeyMacroDlg.Button1Click(Sender: TObject);
  33. begin
  34.   if SaveDialog1.Execute then
  35.     Edit1.Text := SaveDialog1.FileName;
  36. end;
  37.  
  38. end.
  39.